<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/jsp/admintop.jsp"%>
<%@ include file="/jsp/jscommom.jsp"%>
<jsp:directive.page import="com.lg.system.CTurnPage" />
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>修改职位信息</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript">
function goto(url){
window.open(url+"?appDate="+document.all.appDate.value+"&status="+document.all.status.value,"_blank");
}
function goto1(url){
window.open(url,"_blank");
}
	</script>
	<%
		CTurnPage mPage = new CTurnPage();
		mPage = (CTurnPage) request.getAttribute("page");
	%>
	<body>
		<html:form action="/system/admin/copormanage/approvebooth"
			method="post">
			<div align="center">
		     <html:hidden property="method"/>
				<table width="97%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">

					<tr>
						<td>
							<table width="100%" border="0" cellpadding="0" cellspacing="1"
								class="in_mid">
								<tr>
									<td class="titlebg" colspan="4">
										申请展位情况
									</td>
								</tr>

								<tr>
									<td width="80" class="mtdtitle1">
										日期
									</td>
									<td class="mtdtitle1">
										全天所剩展位
									</td>
									<td class="mtdtitle1">
										上午所剩展位
									</td>
									<td class="mtdtitle1">
										下午所剩展位
									</td>
								</tr>
								<logic:present name="situationList">
									<logic:iterate id="situationList" name="situationList"
										type="com.struts.web.manage.admin.corpor.BoothSituationBean"
										indexId="index">

										<tr>
											<td class="mtdtextcenterwrite">
												<bean:write name="situationList" property="showDate"
													format="yyyy-MM-dd" />
											</td>
											<td class="mtdtextcenterwrite">
												${situationList.allDayCount}
											</td>
											<td class="mtdtextcenterwrite">
												${situationList.amCount}
											</td>
											<td class="mtdtextcenterwrite">
												${situationList.pmCount}
											</td>
										</tr>
									</logic:iterate>
								</logic:present>
								<logic:notPresent name="situationList">
									<tr>
										<td class="mtdtextcenterwrite">
											没有可显示的内容!
										</td>
									</tr>
								</logic:notPresent>
							</table>
						</td>
					</tr>

					<tr>
						<td class="mtdtextleft">
							&nbsp;
						</td>
					</tr>
					<tr>
						<td>
							<table width="100%" class="line1" border="0" cellpadding="0" cellspacing="1">
								<tr>
									<td class="mtdtitle1">
										企业名称
									</td>
									<td class="mtdtextleft">
										<html:text property="corporName" styleClass="input1"></html:text>
									</td>

									<td class="mtdtitle1">
										申请日期
									</td>
									<td class="mtdtextleft">
										<html:text property="appDate" onclick="datepopup(this);" styleClass="input1"></html:text>
									</td>
								</tr>

								<tr>
									<td class="mtdtitle1">
										企业编号
									</td>
									<td class="mtdtextleft">
										<html:text property="corporId" styleClass="input1"></html:text>
									</td>

									<td class="mtdtitle1">
										状态
									</td>
									<td class="mtdtextleft">
										<html:select property="status" styleClass="input1">
											<html:option value="">请选择</html:option>
											<html:option value="0">未确认</html:option>
											<html:option value="1">成功</html:option>
											<html:option value="2">无空展位</html:option>
											<html:option value="3">不通过</html:option>
										</html:select>
									</td>
								</tr>
								<tr>
									<td colspan="4" class="mtdtitle1">
										<input type="submit" value="查询" class="tbutton" />
										<input type="reset" value="重置" class="tbutton" />
										<input type="button" value="导出招聘企业" class="tbutton" onClick="goto('/system/admin/copormanage/exportBoothCorpor.do')"/>
										<input type="button" value="导出发布职位" class="tbutton" onClick="goto('/system/admin/copormanage/exportpost.do')"/>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
					<td class="mtdtextcenterwrite">
					&nbsp;
					</td>
					</tr>
					<tr>
						<td>
							<table width="100%" border="0" cellpadding="0" cellspacing="1">
								<tr>
									<td class="titlebg" colspan="7">
										申请展位企业
									</td>
								</tr>
								<tr>
									<td class="mtdtitle1">
										企业编号
									</td>
									<td class="mtdtitle1">
										企业名称
									</td>
									<td class="mtdtitle1">
										申请日期
									</td>
									<td class="mtdtitle1">
										申请类型
									</td>
									<td class="mtdtitle1">
										批准类型
									</td>
									<td class="mtdtitle1">
										分配展位
									</td>
									<td class="mtdtitle1">
										状态
									</td>
								</tr>

								<logic:empty name="page" property="sqlList">
									<tr>
										<td class="mtdtextcenterwrite" colspan="7">
											没有可显示的内容！
											<br>
										</td>
									</tr>
								</logic:empty>
								<logic:notEmpty name="page" property="sqlList">
									<logic:iterate type="com.ibatis.po.corpor.TApplyBooth"
										id="corproAppList" name="page" property="sqlList"
										indexId="index">
										<%
										if ((index.intValue() + 1) % 2 == 0) {
										%>
										<tr style="cursor:hand"
											onclick="goto1('/system/admin/copormanage/approvecorporapply.do?applyId=${corproAppList.id}')">
											<td class="mtdtextcenterblue">
												${corproAppList.corporId}
											</td>
											<td class="mtdtextcenterblue">
												${corproAppList.corporName}
											</td>
											<td class="mtdtextcenterblue">
												<bean:write name="corproAppList" property="appDate"
													format="yyyy-MM-dd" />
											</td>
											<td class="mtdtextcenterblue">
												<logic:equal value="0" name="corproAppList"
													property="appTime">全天</logic:equal>
												<logic:equal value="1" name="corproAppList"
													property="appTime">上午</logic:equal>
												<logic:equal value="2" name="corproAppList"
													property="appTime">下午</logic:equal>
											</td>
											<td class="mtdtextcenterblue">
												<logic:equal value="0" name="corproAppList"
													property="appSuccessTime">全天</logic:equal>
												<logic:equal value="1" name="corproAppList"
													property="appSuccessTime">上午</logic:equal>
												<logic:equal value="2" name="corproAppList"
													property="appSuccessTime">下午</logic:equal>
											</td>
											<td class="mtdtextcenterblue">
												${corproAppList.applyBoothNo}
											</td>
											<td class="mtdtextcenterblue">
												<logic:equal value="0" name="corproAppList"
													property="appStatus">未确认</logic:equal>
												<logic:equal value="1" name="corproAppList"
													property="appStatus">成功</logic:equal>
												<logic:equal value="2" name="corproAppList"
													property="appStatus">无空展位</logic:equal>
												<logic:equal value="3" name="corproAppList"
													property="appStatus">不通过</logic:equal>
											</td>

										</tr>
										<%
										} else {
										%>
										<tr style="cursor:hand"
											onclick="goto1('/system/admin/copormanage/approvecorporapply.do?applyId=${corproAppList.id}')">
											<td class="mtdtextcenterwrite">
												${corproAppList.corporId}
											</td>
											<td class="mtdtextcenterwrite">
												${corproAppList.corporName}
											</td>
											<td class="mtdtextcenterwrite">
												<bean:write name="corproAppList" property="appDate"
													format="yyyy-MM-dd" />
											</td>
											<td class="mtdtextcenterwrite">
												<logic:equal value="0" name="corproAppList"
													property="appTime">全天</logic:equal>
												<logic:equal value="1" name="corproAppList"
													property="appTime">上午</logic:equal>
												<logic:equal value="2" name="corproAppList"
													property="appTime">下午</logic:equal>
											</td>
											<td class="mtdtextcenterwrite">
												<logic:equal value="0" name="corproAppList"
													property="appSuccessTime">全天</logic:equal>
												<logic:equal value="1" name="corproAppList"
													property="appSuccessTime">上午</logic:equal>
												<logic:equal value="2" name="corproAppList"
													property="appSuccessTime">下午</logic:equal>
											</td>
											<td class="mtdtextcenterwrite">
												${corproAppList.applyBoothNo}
											</td>
											<td class="mtdtextcenterblue">
												<logic:equal value="0" name="corproAppList"
													property="appStatus">未确认</logic:equal>
												<logic:equal value="1" name="corproAppList"
													property="appStatus">成功</logic:equal>
												<logic:equal value="2" name="corproAppList"
													property="appStatus">无空展位</logic:equal>
												<logic:equal value="3" name="corproAppList"
													property="appStatus">不通过</logic:equal>
											</td>
										</tr>
										<%
										}
										%>
									</logic:iterate>
								</logic:notEmpty>
								<tr>
									<td colspan="7" class="mtdtitle1">
										<table width='100%'>
											<tr>
												<td>
													<%=mPage.getPageInfo()%>
												</td>
												<td class="right">
													<%=mPage.getTurnPageLink()%>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</html:form>
	</body>
</html>
